From: Felix Fietkau Date: Sat, 21 Jun 2025 08:34:27 +0000 (+0200) Subject: fix returning remote data in get_data for all devices X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=026db0c9e421f4259aa46ae25ce7e77efab7deaa;p=project%2Fufp.git fix returning remote data in get_data for all devices Signed-off-by: Felix Fietkau --- diff --git a/ufpd b/ufpd index 0b3e283..26f263c 100755 --- a/ufpd +++ b/ufpd @@ -329,10 +329,10 @@ global.ubus_object = { refresh_plugins(); + let cur_devices = network_devices(req.args.local); if (!mac) - return devices; + return cur_devices; - let cur_devices = network_devices(req.args.local); let dev = cur_devices[mac]; if (!dev) return libubus.STATUS_NOT_FOUND;